<script>
alert({toString: function() { throw "Exception in toString()."; }});
</script>